# -- coding: utf-8 --
# -- coding: utf-8 --
import requests


def wechat_inform(content):
    headers = {
        "Authorization": "eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjg1NTM3LCJ1dWlkIjoiOTJjYjQ5ZmMtNWQ3Yi00YzUzLTlkMmYtMjBmNDNkMzE2MzNiIiwiaXNfYWRtaW4iOmZhbHNlLCJpc19zdXBlcl9hZG1pbiI6ZmFsc2UsInN1Yl9uYW1lIjoiIiwidGVuYW50IjoiYXV0b2RsIiwidXBrIjoiIn0.8lnlsPpFOb8sD63nzxFRVmsX3Y3PMufUeMbsWYOmZjRkmrvC4k566Di45-8DFBoC2IhIzCofUW97aGumC7ubFw"}
    resp = requests.post("https://www.autodl.com/api/v1/wechat/message/send",
                         json={
                             "title": "来自我的程序",
                             "name": content,
                             "content": content
                         }, headers=headers)
    print(resp.content.decode())
